﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Products.aspx.cs" Inherits="ShowroomMobile.Products"
    Theme="tbmobile" MasterPageFile="~/Product.Master" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content runat="server" ID="cDefault" ContentPlaceHolderID="body">
    <h1>
        <asp:Label runat="server" ID="lblCategoryName" /></h1>
    <asp:UpdatePanel runat="server" ID="upProducts">
        <ContentTemplate>
            <div class="product-list">
                <asp:Repeater runat="server" ID="rptListProducts">
                    <HeaderTemplate>
                        <ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li style="width: 228px; text-align: center;" class="jcarousel-item jcarousel-item-horizontal jcarousel-item-1 jcarousel-item-1-horizontal">
                            <a href="ProductDetails.aspx?cid=<%# Eval("CategoryID")%>&id=<%# Eval("ProductID") %>"
                                title="<%# Eval("Name") %>" class="product_image"><span></span>
                                <img src="<%# ShowroomMobile.Utilities.GetKeySetting("PathUploadImageThumb") + "/" + Eval("ImageUrl") %>"
                                    alt="<%# Eval("Name") %>" /></a>
                            <h5>
                                <a href="ProductDetails.aspx?cid=<%# Eval("CategoryID")%>&id=<%# Eval("ProductID") %>"
                                    title="<%# Eval("Name") %>">
                                    <%# ShowroomMobile.Utilities.GetSubString(Eval("Name").ToString(), 40) %></a><span
                                        class="price"><%# (Convert.IsDBNull(Eval("Price")) || Convert.ToDecimal(Eval("Price")) == 0) ? "" : String.Format("{0:C}", Eval("Price"))%></span></h5>
                        </li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <div class="cb" style="height: 20px">
            </div>
            <webdiyer:AspNetPager ID="anpProducts" PagingButtonsClass="paging_item" CurrentPageButtonClass="current_page"
                FirstDisableButtonsClass="first_d_css" PrevDisableButtonsClass="prev_d_css" NextDisableButtonsClass="next_d_css"
                LastDisableButtonsClass="last_d_css" FirstPageText="&nbsp;" PrevPageText="&nbsp;"
                NextPageText="&nbsp;" LastPageText="&nbsp;" FirstButtonsClass="first_css" PrevButtonsClass="prev_css"
                NextButtonsClass="next_css" LastButtonsClass="last_css" CssClass="paginator"
                runat="server" OnPageChanged="anpProducts_OnPageChanged" Width="100%" HorizontalAlign="Center"
                ShowFirstLast="false" ShowPageIndex="true" NumericButtonCount="5" NumericButtonType="Text"
                ShowMoreButtons="false" ShowPageIndexBox="Never" AlwaysShowFirstLastPageNumber="false"
                PagingButtonSpacing="2" PageSize="12">
            </webdiyer:AspNetPager>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="cb">
    </div>
</asp:Content>
